module.exports = {
    devServer: {
      open: true, // 项目npm rum serve后自动打开浏览器
      port: 8888,
      overlay: false, // 关掉eslint的报错遮罩
      proxy: {
        '/api': {
          target: "https://api.iynn.cn/",
          changeOrigin: true,
          pathRewrite: {
            '^/api': '', // 把target这 一长串，改为用api开头就可以匹配
          }
        },
        '/order':{
            target: "https://m.28sjw.com/",
            changeOrigin: true
        }
      }
    },
    lintOnSave: false,
  }
  